﻿namespace housingsafety.server.Models
{
    public class DepartmentDto
    {
        public string Id { get; set; }

        public string ParentId { get; set; }

        public string RegionName { get; set; }

        public string RegionFullName { get; set; }

        public string RegionStatus { get; set; }

        public string RegionCode { get; set; }

        public string RegionalLevel { get; set; }

        public string RankName { get; set; }

        public override bool Equals(object obj)
        {
            return string.Equals(RegionCode, (obj as DepartmentDto).RegionCode);
        }

        public override int GetHashCode()
        {
            return RegionCode.GetHashCode();
        }
    }

    public class SimpleDepartmentDto
    {
        public string Id { get; set; }

        public string RegionName { get; set; }

        public string RegionCode { get; set; }
    }
}
